package com.zkq.lvse.web.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.zkq.lvse.common.utils.Page;
import com.zkq.lvse.web.dao.UserDao;
import com.zkq.lvse.web.entity.User;
import com.zkq.lvse.web.service.UserService;

@Service
@Transactional
public class UserServiceImpl implements UserService {
	@Autowired
	private UserDao userDao;

	public void delete(User user) {
		userDao.delete(user);
	}

	public User get(String id) {
		return userDao.get(id);
	}

	public List<User> list() {
		return userDao.getAll();
	}

	public void save(User user) {
		userDao.save(user);
	}

	public Page<User> page(Page<User> page) {
		return userDao.getAll(page);
	}

}
